package org.example.config;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class UserAop {

    @Pointcut("execution(* org.example.service.ResourcesService.delete(..))")
    public void  sysroleptx(){}

    @Before("sysroleptx()")
    public void methods(){
        System.out.println("我是提交Before");
    }
    @After("sysroleptx()")
    public void methods2(){
        System.out.println("我是提交After");
    }

}
